package com.easydisk.user.model.req;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@Data
public class UpdatePasswordReq {

    // 旧密码
    @NotBlank
    @Length(min = 6, max = 16)
    private String password;

    // 新密码
    @NotBlank
    @Length(min = 6, max = 16)
    private String newPassword;
}
